import { defineStore } from 'pinia';

export const useMainStore = defineStore('main', {
    state: () => ({
        userInfo: {}, // 用户信息token
		userInfoObj: {}, // 用户信息
		userCode:'0421b997'   //用户code
    }),
    getters: {
    },
    actions: {
        setUserInfo(data) {
            this.userInfo = data;
        },
		setUserInfoObj(data) {
		    this.userInfoObj = data;
		},
		setUserCode(data) {
		    this.userCode = data;
		}
    },
});